package com.jjyu.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jjyu.entity.Recommendation;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface RecommendationMapper extends BaseMapper<Recommendation> {

    @Insert("INSERT INTO recommendation (user_id, restaurant_id, created_at, rating) VALUES (#{userId}, #{restaurantId}, #{timestamp}, #{rating})")
    void insertRecommendation(Recommendation recommendation);
}
